Recorder: Show details of blur nodes
authorMatthias Clasen <mclasen@redhat.com>
Thu, 28 Sep 2017 23:48:42 +0000 (19:48 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 28 Sep 2017 23:48:42 +0000 (19:48 -0400)
gtk/inspector/recorder.c

index 19786a99fd7dcd01cbc7eeb9cdd8965c3cadaf87..73dc681243ad56c83a1dbe73d1b7e2d9f71aacea 100644 (file)
@@ -425,6 +425,21 @@ populate_render_node_properties (GtkListStore  *store,
       }
       break;
 
+    case GSK_BLUR_NODE:
+      {
+        double radius = gsk_blur_node_get_radius (node);
+        const char *text;
+
+        text = g_strdup_printf ("%.2f", radius);
+        gtk_list_store_insert_with_values (store, NULL, -1,
+                                           0, "Radius",
+                                           1, text,
+                                           2, FALSE,
+                                           3, NULL,
+                                           -1);
+        g_free (text);
+      }
+      break;
     default: ;
     }
 }